DevForce Help Reference
Take<TSource>(IEntityQuery<TSource>,Int32) Method
Example 


Returns a specified number of contiguous elements from the start of a sequence.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Overloads Shared Function Take(Of TSource)( _
   ByVal source As IEntityQuery(Of TSource), _
   ByVal count As Integer _
) As IEntityQuery(Of TSource)
'Usage
 
Dim source As IEntityQuery(Of TSource)
Dim count As Integer
Dim value As IEntityQuery(Of TSource)
 
value = EntityQueryExtensions.Take(Of TSource)(source, count)

Parameters

source
count

Type Parameters

TSource
Example
var mgr = new DomainModelEntityManager();

var query = mgr.Customers.OrderBy(c=> c.Id).Skip(10).Take(10);
var results = query.Execute();
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityQueryExtensions Class
EntityQueryExtensions Members
Overload List

Send Feedback